'use strict';

const db = uniCloud.database()
exports.main = async (event, context) => {
	let { wordBankId, title, url } = event
	const addRes = 	await db.collection("word-bank").add({
		wordBankId,
		title,
		url
	});
	
	return addRes
};
